package com.zhku.onlineshop.Service;

import com.zhku.onlineshop.Pojo.Product;
import com.zhku.onlineshop.dto.ProductRating;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ProductService {
    List<Product> GetProductsList();

    boolean AddProduct(Product product);

    List<Product> GetProductById(Integer id);

    boolean DelProductById(Integer id);

    boolean UpdProduct(Product product);

    List<ProductRating> GetRattingById(Integer productId);

    boolean AddRatting(ProductRating productRating);

    List<Product> SelProduct();
}
